<html>
    <body>
        <?php
            session_start();
            if(ISSET($_SESSION['user'])) {
                print $_SESSION['user'];
                print "<br><a href=logout.php?loggedout=true>logout</a>";
            }
        ?>
    </body>
</html>
